#define _CRT_SECURE_NO_WARNINGS

#include <stdio.h>

int main()
{
    int n = 0;
    int count = 0;
    scanf("%d", &n);
    int arr[100] = { 0 };
    for (int i = 0; i <= n; i++)
    {
        scanf("%d ", &arr[i]);
    }
    int x = 0;
    scanf("%d", &x);
    for (int j = 0; j <= n; j++)
    {
        if (arr[j] == x)
        {
            count += 1;
        }
    }
    printf("%d\n", count);
    return 0;
}